module.exports = {
    css: {
        loaderOptions: {
            less: {
                //vant 定制主题
                modifyVars: {
                    // 直接覆盖变量
                    'text-color': '#f40',
                    'border-color': '#cccc',
                    'tab-active-text-color': '#6b4c10',
                    'tabs-bottom-bar-color': '#43240c',
                    'tabs-nav-background-color': '#fdde4a',
                    'button-default-height': '30px',
                    'sidebar-text-color': '#6b4c10'
                }
            } 
        }
    },
    devServer: {
        port: 1995,
        open: true,
        proxy: { //反向代理
            '/xiongmao': { // url "/xiongmao"开头的
                target: 'http://www.xiongmaoyouxuan.com',
                changOrigin: true,
                pathRewrite: { '^/xiongmao': "" }
            },
            '/cz': {
                target: 'https://shopapi.smartisan.com',
                changOrigin: true,
                pathRewrite: { '^/cz': "" }
            }
        }
    }
}
